//
//  CNBBSCreatePostViewModel.h
//  CsdnPlus
//
//  Created by 孟瑞瑞 on 2018/7/20.
//  Copyright © 2018年 CSDN. All rights reserved.
//

#import "BaseViewModel.h"
#import "CNBBSNetManager.h"

@interface CNBBSCreatePostViewModel : BaseViewModel

@property (nonatomic, assign) NSInteger code;

@property (nonatomic, copy) NSString *message;

@property (nonatomic, copy) NSString *errorStr;




@property (nonatomic, copy) NSString *nickname;

@property (nonatomic, copy) NSString *digg;

@property (nonatomic, assign) BOOL is_digged;

@property (nonatomic, copy) NSString *body;


@property (nonatomic, copy) NSString *avatar;

@property (nonatomic, copy) NSString *created_at;

@property (nonatomic, copy) NSString *username;


@property (nonatomic, copy) NSString *postId;

@property (nonatomic, copy) NSString *floor;

@property (nonatomic) BOOL success;

/**
 回复论坛
 
 @param topicId 论坛id
 
 @param body 内容
 
 @return 网络请求任务
 */
-(void)getBBSCreatePostWithTopicId:(NSString *)topicId Body:(NSString *)body CompletionHandle:(CompletionHandle)completionHandle;

/**
 论坛引用数据
 
 @param postId 回帖id
 
 @return 网络请求任务
 */
-(void)getBBSQuoteWithPostId:(NSString *)postId CompletionHandle:(CompletionHandle)completionHandle;

/**
 点赞论坛
 
 @param topicId 论坛id
 
 @param postId 回帖id
 
 @return 网络请求任务
 */
-(void)getBBSDiggWithTopicId:(NSString *)topicId PostId:(NSString *)postId IsTopic:(BOOL)isTopic CompletionHandle:(CompletionHandle)completionHandle;

/**
 论坛举报
 
 @param topicId 论坛id
 
 @param postId 回帖id
 
 @return 网络请求任务
 */
-(void)getBBSReportWithTopicId:(NSString *)topicId PostId:(NSString *)postId IsTopic:(BOOL)isTopic ReasonType:(NSString *)reasonType CompletionHandle:(CompletionHandle)completionHandle;
@end
